package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * <p>
 * 公告信息表
 * </p>
 *
 * @author cpf
 *
 */
@ApiModel(value = "Notice对象", description = "公告信息表")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String user;

    public Integer getId() {
       return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getTitle() {
       return title;
    }


    public void setTitle(String title) {
        this.title = title;
    }


    public String getContent() {
       return content;
    }


    public void setContent(String content) {
        this.content = content;
    }


    public Date getCreateTime() {
       return createTime;
    }


    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public String getUser() {
       return user;
    }


    public void setUser(String user) {
        this.user = user;
    }



    @Override
    public String toString() {
        return "Notice{" +
        "id=" + id +
        ", title=" + title +
        ", content=" + content +
        ", createTime=" + createTime +
        ", user=" + user +
        "}";
    }
}
